package br.edu.unirn.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

import br.edu.unirn.dao.PersistDB;

@Entity
@IdClass(TelefonePK.class)
public class Telefone implements PersistDB {

	@Id
	private int ddd;

	@Id
	private String numero;

	public Telefone() {
		super();
	}

	public Telefone(int ddd, String numero) {
		super();
		this.ddd = ddd;
		this.numero = numero;
	}

	public int getDdd() {
		return ddd;
	}

	public void setDdd(int ddd) {
		this.ddd = ddd;
	}

	public String getNumero() {
		return numero;
	}

	public void setNumero(String numero) {
		this.numero = numero;
	}

	public Long getId() {
		throw new UnsupportedOperationException("Not supported yet."); // To
																		// change
																		// body
																		// of
																		// generated
																		// methods,
																		// choose
																		// Tools
																		// |
																		// Templates.
	}

	public void setId(Long id) {
		throw new UnsupportedOperationException("Not supported yet."); // To
																		// change
																		// body
																		// of
																		// generated
																		// methods,
																		// choose
																		// Tools
																		// |
																		// Templates.
	}

}